package org.halk.mq;

import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.halk.mq.entity.Hello;
import org.springframework.stereotype.Component;

/**
 * @Author halk
 * @Date 2023/8/21 16:00
 */
@Slf4j
@Component
@RocketMQMessageListener(topic = JobConsumer.TOPIC_HELLO, consumerGroup = JobConsumer.TOPIC_HELLO)
public class JobConsumer implements RocketMQListener<Object> {

    static final String TOPIC_HELLO = "Biims_Job_Req";

    @Override
    public void onMessage(Object obj) {
        System.out.println("receiver message: " + obj);
    }
}
